package com.then.recruitment;

import android.app.Activity;
import android.os.Bundle;
import android.os.PersistableBundle;

import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;

/**
 * Created by wk on 15/3/10.
 */
public class BaseActivity extends Activity {
    protected ImageLoader imageLoader = ImageLoader.getInstance();
    protected DisplayImageOptions options = null;
    protected RequestQueue requestQueue = null;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        options = new DisplayImageOptions.Builder()
                .build();
        MainApp mainApp = (MainApp) getApplication();
        requestQueue = mainApp.requestQueue;
        StringRequest stringRequest = new StringRequest(null,null,null);
    }
    protected void executeRequest(Request request)
    {
        requestQueue.add(request);
    }

}
